<?php
$params = array_merge(
    require(__DIR__ . '/../../common/config/params.php'),
    require(__DIR__ . '/../../common/config/params-local.php'),
    require(__DIR__ . '/params.php'),
    require(__DIR__ . '/params-local.php')
);

return [
    'id' => 'app-console',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    'controllerNamespace' => 'console\controllers',
    'controllerMap' => [
        'schedule' => [
            'class' => \omnilight\scheduling\ScheduleController::className(),
            'scheduleFile' => '@app/schedule.php'
        ],
        'fixture' => [
//            'class' => 'yii\console\controllers\FixtureController',
            'class' => 'yii\faker\FixtureController',
//            'namespace' => 'common\fixtures',

        ],
    ],
    'modules' => [
        'phone' => [
            'class' => 'console\modules\phone\PhoneModule',
        ],
        'unionpay' => [
            'class' => 'console\modules\unionpay\UnionpayModule',
        ],
        'gps' => [
            'class' => 'console\modules\gps\GpsModule',
        ],
        'others' => [
            'class' => 'console\modules\others\OthersModule',
        ],
        'bank' => [
            'class' => \console\modules\bank\BankModule::className(),
        ],
        'loan' => [
            'class' => \console\modules\loan\LoanModule::className(),
        ],
    ],
    'components' => [
        /*'log' => [
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],*/
        /*'authManager' => [ // use for yii2-admin migrate
            'class' => \yii\rbac\DbManager::className(),
        ],*/
    ],
    'params' => $params,
];
